package com.lyfam.vaadin.validator;

import com.lyfam.vaadin.service.DwValidator;
import com.lyfam.vaadin.service.FakeValidator;
import com.vaadin.data.validator.AbstractValidator;

public class ProjectNameValidator extends AbstractValidator
{
    DwValidator validator;
    
    public ProjectNameValidator(String errorMessage)
    {
        super(errorMessage);
        validator = new FakeValidator.ProjectNameValidator();
    }

    @Override
    public boolean isValid(Object value)
    {
        return validator.isValid(value);
    }

    public DwValidator getValidator()
    {
        return validator;
    }

    public void setValidator(DwValidator validator)
    {
        this.validator = validator;
    }
}
